<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>入力ページ(formmail)</title>
<%include file="_meta.html"/>
<% f = formmail.get(key) %>
%if f.get('formcss') == 'True':
<link href="/common/css/form.css" rel="stylesheet">
%endif
</head>
<body class="free">

<!-- page header xx start -->
<header class="noprint">
<%include file="_header.html" />
</header>
<!-- page header xx end -->
<div id="headline"></div>

<div id="container">

    <div id="contents" class="clearfix">

    <%include file="formmail_${key}_hed.html" args="f=f"/>

    <div class="paneoform document">
    <!-- paneo form xx start -->
    <% PARAM = web.ctx.session.get('redirect_param',{}).get('EVENT',{}) %>
    <% contents = AT.GetPostById( PARAM.get("EVENT_ID") ) %>
    %if contents :
    <% 
        posts = AT.GetPostsByKey('builder',str(contents.key))
        company = ""
    %>
    %for c in posts:
    <% company = c.GetField('name') %>
    %endfor
    <form name="${key}_form" action="/forms/formmail_${key}_conf.html" method="POST">
    <ul>
        <li>
             <h2>${f.get('name')}</h2>
             <span class="required_notification">* 必須入力</span>
        </li>
        <li>
            <label for="company">イベント主催者</label>
            <fieldset data-paneo-form="company" data-paneo-form-required="True">
            <input type="hidden" name="company" value="${company}"/>
            <div>${company}</div>
            </fieldset>
        </li>
        <li>
            <label for="event_name">申込イベント</label>
            <fieldset data-paneo-form="event_name" data-paneo-form-required="True">
            <input type="hidden" name="event_name" value="${ contents.GetField('eventdate')}
            ${ contents.GetField('eventtime')}
            ${contents.title}"/>
            <div>
            <span>${ contents.GetField('eventdate')}</span> 
            <span>${ contents.GetField('eventtime')}</span> 
            <span>${contents.title}</span>
            </div>
            </fieldset>
        </li>
        <li>
            <label for="sanka">ご希望参加 予定日</label>
            <fieldset data-paneo-form="sanka" data-paneo-form-required="True">
            <input type="text" name="sanka"  placeholder="${contents.GetField('eventdate')}" required />
            </fieldset>
        </li>
        <%include file="sogokan_name_field.html"/>

        <li>
            <label for="call">ご希望の連絡方法</label>
            <fieldset data-paneo-form="call" data-paneo-form-required="True">
            <input type="radio" name="call" value="メール" checked/>メール
            <input type="radio" name="call" value="電話"/>電話
            </fieldset>
        </li>
        <li>
            <fieldset class="send">
            <button class="submit" type="submit" name="CMD_CONF">送信確認</button>
            <button class="cancel" type="reset">キャンセル</button>
            </fieldset>
        </li>
    </ul>
    </form>
    </div>
    %endif
    <!-- paneo form xx end -->
    <%include file="formmail_${key}_ftr.html" args="f=f"/>

    </div><!-- /#contents -->

</div><!-- /#container -->
<!-- page footer -->
<%include file="_footer.html"/>
<%include file="_anchor_navi.html"/>

</body>
</html>



